package suzf.top.usercenter.service

import rx.Observable
import suzf.top.usercenter.data.protocol.UserInfo

/**
 *
 *========================
 * Created with AndroidStudio
 * Author:Mr.Su
 * Date:2019-09-08
 * Time:10:20
 * ========================
 */
interface UserService {

    /**
     * 注册
     */
    fun register(mobile: String, pwd: String, verifyCode: String): Observable<Boolean>

    /**
     * 登录
     */
    fun login(mobile: String, pwd: String, pushId: String): Observable<UserInfo>

    /**
     * 忘记密码
     */
    fun forgetPwd(mobile: String, verifyCode: String): Observable<Boolean>

    /**
     * 重置密码
     */
    fun resetPwd(mobile: String, pwd: String): Observable<Boolean>

    /**
     * 修改用户信息
     */
    fun editUser(userIcon: String, userName: String, userGender: String, userSign: String): Observable<UserInfo>
}